package com.yuanfeng.base.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.base.dto.BaseOssConfigDTO;
import com.yuanfeng.base.entity.BaseOssConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @ClassName BaseOssConfigMapper
 * @Description OSS
 * @Author cf
 * @Date 2023/6/21 16:43
 * @Version 1.0
 */
@Mapper
public interface BaseOssConfigMapper extends BaseMapper<BaseOssConfigEntity> {

    /**
     * 查询信息
     *
     * @return
     */
    BaseOssConfigEntity selectOSSInfo(String ossType);

    Map<String, Object> selectGoodsOSSInfo();

    int insertOSSInfo();

    int getOSSConfigbyId();

    void updateOssConfig(@Param("param") BaseOssConfigDTO baseOssConfigReq);
}
